<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #box{
            width: 620px;
            height: 320px;
            border: 1px solid red;
            padding: 10px;
            margin: 0 auto;
        }
        img{
            width: 150px;
            height:150px;
            /* border: 1px solid brown; */
            opacity: 0.5;
        }
        img:hover{
            opacity: 1;
        }
        

    </style>
</head>
<body>
    <div id="box">
        <img src="./img/1.jpg" alt="">
        <img src="./img/1.jpg" alt="">
        <img src="./img/1.jpg" alt="">
        <img src="./img/1.jpg" alt="">
        <img src="./img/2.jpg" alt="">
        <img src="./img/2.jpg" alt="">
        <img src="./img/2.jpg" alt="">
        <img src="./img/2.jpg" alt="">

    </div>
   
    
</body>
</html>